package FileStatus;

import java.io.File;
import java.util.ArrayList;

public class LocalFile {

    /**
     * 创建本地对应远端机器的文件夹
     * 
     * 2014.11.27 修正为检查list空值
     * @param list
     */
    public static void initMac(ArrayList<String> list) {
        File file = null;
        if (list.size() != 0) {
            for (String dir : list) {
                file = new File(dir);

                if (!file.exists()) {
                    file.mkdir();

                    file = new File(dir + "/Data");
                    file.mkdir();

                    file = new File(dir + "/Order");
                    file.mkdir();
                }
            }
        }
    }

}
